﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HomeFramework.Model
{
    public partial class Configuration
    {
        private static HomeFrameworkDB db { get { return new HomeFrameworkDB(); } }

        public static string GetValue(string key)
        {
            var risp = db.Configurations.SingleOrDefault(x => x.Name == key);
            return risp != null ? risp.Value : string.Empty;
        }

        public const string wsdlBasePath = "wsdlBasePath";
        public const string innerServicePath = "innerServicePath";
        public const string cacheTimeoutMinutes = "cacheTimeoutMinutes";
    }
}